begintownscript;

variables;
short bmessage,rctx,rcty,talk;
string custom_m;

body;

beginstate INIT_STATE;
	set_total_visibility(0);
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;

	if(get_flag(1,0) < 2){
		inc_flag(1,0,1);
		if(get_flag(1,0) == 2){
			if(party_size() == 1)
				message_dialog("Rubbing the sleep out of my eyes...  This room sure isn't the best in the farmhouse-- it was probably used by the farmhands-- but at least I could keep the cold air out.","The place doesn't smell particularly good, but at least the family died outside rather than in here.");
			if(party_size() > 1)
				message_dialog("Rubbing the sleep out of our eyes...  This room sure wasn't the best in the farmhouse-- it was probably used by the farmhands-- but at least we could keep the cold air out.","The place doesn't smell particularly good, but at least the family died outside rather than in here.");
		}
	}

break;

beginstate 10;

	if(get_flag(2,0) == 0){
		message_dialog("The woman here has a large arrow going straight though her skull.  It's not any arrow, either- it looks like it's at the center of a profoundly lethal crater.  Her skull isn't merely pierced; it's obliterated.","Whoever shot this woman down was obviously after a glorious kill and nothing more.  The killer didn't even bother looting her body.");
		set_flag(2,0,1);
	}

break;

beginstate 11;

	if(get_flag(3,0) == 0){
		if(party_size() > 1)
			message_dialog("There is an opened secret passage here, however it appears to be fixed in the open position.  Whether the mechanism is smashed or it's designed to be used once, we don't know.","");
		if(party_size() == 1)
			message_dialog("There is an opened secret passage here, however it appears to be fixed in the open position.  Whether the mechanism is smashed or it's designed to be used once, I don't know.","");
		set_flag(3,0,1);
	}

break;

beginstate 12;

	if(get_flag(4,0) == 0){
		message_dialog("Whoever _General Abidan_ was, he was nothing if not strong.  From the looks of things, the man emerged from the open passage in his room, took his axe and essentially ran down the veranda, but he didn't just run.","He took his axe and smashed everything, including the enemies and his house's fence.  He was killed by what appears to be a magically-fired arrow that shattered his helmet, drilling through both his entire skull and the helmet.  Impressive.");
		set_flag(4,0,1);
	}

break;

beginstate 13;

	if(get_flag(7,0) == 0){
		message_dialog("This appears to be where the fighting began.  Some of the farmhands, identified by their sub-par and crude equipment not intended for fighting, were shot down by brigand archers.","There are a few corpses of the raiders here as well.  The farmhands were ill-prepared but not defenseless.");
		set_flag(7,0,1);
	}

break;

beginstate 14;

	if(get_flag(8,0) == 0){
		message_dialog("Whoever this poor girl was- likely Abidan's daughter- she was killed in a way that brigands might be apt to use.","Which is to say, until she was done in, she was likely wishing that she would be killed more speedily.");
		set_flag(8,0,1);
	}

break;

beginstate 30;

	reset_dialog();
	add_dialog_str(0,"There is a letter here.",0);
	add_dialog_choice(0,"Read it.");
	add_dialog_choice(1,"Leave it alone.");
	bmessage = run_dialog(0);
	if(bmessage == 2)
		end();

	reset_dialog();
	add_dialog_str(0,"Dear General Abidan,"30);
	add_dialog_str(1,"I was surprised when I read your first letter to me.  You have researched the circumstances of your son's death almost as much as I have experienced them.",0);
	add_dialog_str(2,"I do not know how you accessed such secret documents, especially with being so isolated from Solaria, but you are right:  A rakshasa named Sabertooth was responsible for the circumstances of his death.",0);
	add_dialog_str(3,"Dervish Malachai was actually murdered, however, by a mind-controlled, mutated beast by the name of Zenbu, who used to be Casimir, one of Lord Eubans' bodyguards before Sabertooth.  Casimir is currently deceased.",0);
	add_dialog_str(4,"Admittedly, I was not aware that Sabertooth was not the only rakshasa making political movements.  Plus, I cannot conclusively answer your questions on General Foottracer.  Again, my condolences for your loss.",0);
	add_dialog_str(5,"Signed, the Province Governor of Ivalice, Hunter",30);
	bmessage = run_dialog(1);

	set_flag(6,0,1);

break;

beginstate 31;

	reset_dialog();
	add_dialog_str(0,"There is a letter here.",0);
	add_dialog_choice(0,"Read it.");
	add_dialog_choice(1,"Leave it alone.");
	bmessage = run_dialog(0);
	if(bmessage == 2)
		end();

	reset_dialog();
	add_dialog_str(0,"Dear Abidan.",30);
	add_dialog_str(1,"Apologies, but I will be terse here.  You may call me _K_.  I have come to you to speak of your son's death and a way in which you may exact both justice and revenge.",0);
	add_dialog_str(2,"I have attached to this letter documents concerning the death of your son, Malachai.  Read them and commit their contents to memory, then burn them.  I do not want it known that such sensitive materials are being casually read, as I might then be traced.",0);
	add_dialog_str(3,"The brigand attacks Sunset Creek has been experiencing lately are not merely random vultures attacking a weak colony.  They are agents of another _rakshasa_.",0);
	add_dialog_str(4,"I am not aware as to whether or not this new threat is related to the one which killed Malachai.  I will investigate more and contact you in a brief while.  Remember- BURN THE FORMS when you are through with them.",0);
	add_dialog_str(5,"-- K",0);
	bmessage = run_dialog(1);

	set_flag(5,0,1);

break;
